<div class="content">
<div class="con">
<form class="form-horizontal" method="POST" >
  <table class="table layui-table">
    <thead>
    <tr class="th" >
      <th>名称</th><th>内容</th><th></th>
    </tr>
    </thead>
    
    <?php foreach($ext as $info){ 
      $j++; ?>
    <tr  class="odd" >
    <td class="input_text"><input type="text" name="info[<?php echo $j ?>][name]" value="<?php echo $info['name'] ?>" /> </td> 
    <td><textarea class="input-xxlarge" name="info[<?php echo $j ?>][val]" ><?php echo $info['val'] ?></textarea></td> 
    <td><a href="javascript:void(0);" onclick="wipeout($(this));"><i class="icon-trash"></i></a></td>
    </tr>
    <?php } ?>
    
    <?php for($i=$j+1;$i<$j+6;$i++){ ?>
    <tr class="odd" >
      <td  class="input_text"> <input type="text" name="info[<?php echo $i ?>][name]" value="" /> </td> 
      <td><textarea class="input-xxlarge" name="info[<?php echo $i ?>][val]" ></textarea></td>  
      <td> <a href="javascript:void(0);" onclick="wipeout($(this));" ><i class="icon-trash"></i></a></td>
    </tr>
    <?php } ?>
  </table>
  
  <div class="form-actions">
    <button class="layui-btn form_btn" lay-submit lay-filter="formDemo">保存</button>
    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  </div>
</form>
</div>
</div>
